package gestion_des_note;

import javax.swing.UIManager;
import java.awt.*;
import java.util.*;
public class Classe_Principal {
  private boolean packFrame = false;
   //Construire l'application
  public Classe_Principal() {
    Fentre_acceuile frame = new Fentre_acceuile();
    //Valider les cadres ayant des tailles pr�d�finies
    //Compacter les cadres ayant des infos de taille pr�f�r�es - ex. depuis leur disposition
    if (packFrame) {
      frame.pack();
    }
    else {
      frame.validate();
    }
    //Centrer la fen�tre
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
  Dimension frameSize = frame.getSize();
    /*if (frameSize.height > screenSize.height) {
      frameSize.height = screenSize.height;
    }
    if (frameSize.width > screenSize.width) {
      frameSize.width = screenSize.width;
    }*/
    frame.setSize(800,500 );
    frame.setVisible(true);
    //frame.setBackground();
  }
  //M�thode main
  public static void main(String[] args)  {
    try {
      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    }
    catch(Exception e) {
      e.printStackTrace();
    }

    new Classe_Principal();
  }
}